#include "zhngdi.hpp"


int main()
{
    using namespace std;
    using namespace zhngdi;
    Figure fig1(480, 480, "zhn");
    fig1.Set_PenColor(0xFF0000FF);
    fig1.Draw_Line(0, 0, 480, 480);
    fig1.Draw_Circle(240, 240, 240);
    for (int i=5; i<470; ++i)
        fig1.Draw_Pixel(480-i, i);
    Figure fig2(800, 600, "second");
    fig2.Set_PenColor(0xFFFF0000);
    fig2.Draw_Rectangle(200, 10, 300, 110);
    fig2.Draw_Text(200, 200, "Hello World!");
    Figure fig3("E:/qt/01.jpeg", "btn");
    POINT2D p(fig3.Get_WindowSize());
    cout << p.x << " " << p.y << endl;
    Figure::Window_Loop();
    return 0;
}
